home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / diskmags / ardisk3.lha / NoReboot.lha / NoReboot.c < prev   
C/C++ Source or Header  |  1994-07-12  |  951b  |  35 lines

  1. /*
  2. ** NoReboot
  3. **
  4. ** Written by Stuart MacKinnon on 01/01/94, 3:00am - just after new year!
  5. **
  6. ** Compiled with SAS/C 6.50 (I was the first person in Australia to get it!!)
  7. **
  8. ** Recompiled with SAS/C 6.51 on 20/02/94.
  9. **
  10. ** This code should be able to be compiled with any C compiler, given the
  11. ** right includes. If you don't have SAS/C or something that can do tag
  12. ** calls directly, then you will probably need the latest amiga.lib linker
  13. ** library for the stub for the SystemControl() function.
  14. **
  15. ** This file, along with its executable is completely public domain. You
  16. ** can hack it, mash it, destroy it in any way you like.
  17. */
  18.  
  19. #include <exec/types.h>
  20. #include <proto/exec.h>
  21. #include <proto/lowlevel.h>
  22.  
  23. struct Library *LowLevelBase = NULL;
  24.  
  25. void main (void)
  26. {
  27.     LowLevelBase = OpenLibrary ("lowlevel.library", 40);
  28.     if (LowLevelBase != NULL)
  29.     {
  30.         SystemControl (SCON_CDReboot, CDReboot_Off,
  31.             TAG_END);
  32.         CloseLibrary (LowLevelBase);
  33.     }
  34. }
  35.